#ifndef UI_BATTLEMENU_H_
#define UI_BATTLEMENU_H_

#include "ui_menugeneric.h"

class CUIBattleMenu : public CUIBase 
{

private:

	CUIMenuGeneric * m_OptionMenu;
	
	bool m_bDrawWindow;
	
public:
	
	CUIBattleMenu() : CUIBase(), m_OptionMenu( NULL )
	{
		
		SetColor( 1.0, 1.0, 1.0, .8 );
		
		m_bDrawWindow = true;
		
	}
	
	~CUIBattleMenu()
	{
		
		if( m_OptionMenu )
			delete m_OptionMenu;
		
	}
	
	inline void SetDrawWindow( bool b )
	{
		
		m_bDrawWindow = b;
		
	}
	
	void Input( SDL_Event &, Uint8 * );
	void Draw();
	
	void InitOptionMenu()
	{
		
		m_OptionMenu = new CUIMenuGeneric;
		m_OptionMenu->SetEntityInterface( m_pEntityInterface );
		
		m_OptionMenu->Cascade();
		
	}
	
	CUIMenuGeneric * GetOptionMenu()
	{
		
		return m_OptionMenu;
		
	}
	
	void Resize()
	{
		
		Vector2D size = m_OptionMenu->GetSize();
		
		SetSizeOverride( size.x + m_Padding.x * 2, size.y + m_Padding.y * 2 );
		
		Vector2D optionPos = m_Pos + m_Padding;
		optionPos.y -= m_Padding.y * .33; //Quick position fix
		
		m_OptionMenu->SetPos( optionPos );
		
	}

};

#endif

